package everydayGrade.t3;

import CommonStructure.ListNode;

/**
 * @Author: Siantar
 * @Date: 2024-01-03-12:20
 * @Description: 1.0
 */
public class T2478 {
    public ListNode removeNodes(ListNode head) {
        if (head == null || head.next == null) return head;
        head.next = removeNodes(head.next);
        if (head.val < head.next.val) return head.next;
        return head;
    }
}
